home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2 Examples.sit
/
Raven 1.2 Examples
/
Quill
/
Source
/
ScrollBarEditor.h
< prev
next >
Wrap
Text File
|
1997-01-22
|
2KB
|
78 lines
/*
* File: ScrollBarEditor.h
* Summary: A view that knows how to edit a TScrollBar.
* Written by: Jesse Jones
*
* Copyright ゥ 1996 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <-> 1/22/96 JDJ Created
*/
#pragma once
#include <ZScrollBar.h>
#include "BasePaneEditor.h"
// ===================================================================================
// class CEditscrollBarCommand
// ===================================================================================
class CEditscrollBarCommand : public CBaseEditPaneCommand<TScrollBar, SScrollBarInfo> {
typedef CBaseEditPaneCommand<TScrollBar, SScrollBarInfo> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CEditscrollBarCommand();
CEditscrollBarCommand(TScrollBar* pane, const SScrollBarInfo& oldInfo, const SScrollBarInfo& newInfo);
//-----------------------------------
// Inherited API
//
public:
virtual void UpdatePane(const SScrollBarInfo& newInfo);
};
// ===================================================================================
// CScrollBarEditor
// ===================================================================================
class CScrollBarEditor : public CBasePaneEditor<TScrollBar, SScrollBarInfo, CEditscrollBarCommand> {
typedef CBasePaneEditor<TScrollBar, SScrollBarInfo, CEditscrollBarCommand> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CScrollBarEditor();
CScrollBarEditor(TView* superView);
//-----------------------------------
// Inherited API
//
public:
virtual bool Validate();
protected:
virtual SScrollBarInfo GetEditorInfo() const;
virtual void SetEditorInfo(const SScrollBarInfo& info);
//-----------------------------------
// TReanimator Support
//
public:
static MReanimatable* Create(MReanimatable* parent);
};